
package com.collections;

import java.util.Stack;

public class StackApp {

	public static String disp(String name){
		name = "pur";
		return name ;
	}
	public static void main(String[] args) {
		String name = StackApp.disp("malli");
		System.out.println(name);
		
	Stack s=new Stack();
	
	s.push("raghupathi");
	s.push(" raghava");
	s.push(" raju");
	s.push(" purna");
	
	System.out.println(s.search("ram"));
	System.out.println(s);
	System.out.println(s.peek());
	System.out.println(s);
	System.out.println(s.empty());
	System.out.println(s.search("raghava"));
	System.out.println(s.pop());
	System.out.println(s);
	

	}
}
